<?php echo $header; ?>
<div class="page">
	<div class="personal_info">
    	Welcome,<span id="userName"><?php echo $this->customer->getLastName() ?></span>
					<a href="index.php?route=account/logout">logout</a>
    </div>
	<div class="greenPanel">
		<table width="95%" cellpadding="0" cellspacing="0" align="center" style="margin:auto;">
			<tr>
				<td colspan="3" align="left" height="50px">
					<a href="javascript:void(0)" style="float:left;background:url(catalog/view/theme/default/images/agreeItem.png);padding:8px 70px 17px 62px;">Account</a>
				</td>
			</tr>
			<tr>
				<?php echo $left; ?>
				<td style="height:500px;" valign="top" class="ManageMain">
					<ul>
						<li>Product Returns</li>
					</ul>
					<?php if ($returns) { ?>
					<?php foreach ($returns as $return) { ?>
					<table width="100%" cellspacing="0" cellpadding="0" class="list">
						<tr>
							<th width="35%" class="textleft"><strong>Return </strong> <?php echo $text_return_id; ?>#<?php echo $return['return_id']; ?></th>
							<th width="40%">&nbsp;</th>
							<th width="25%"><?php echo $text_status; ?> <?php echo $return['status']; ?></th>
						</tr>
						<tr>
							<td class="textleft"><?php echo $text_date_added; ?><?php echo $return['date_added']; ?></td>
							<td class="textleft"><?php echo $text_customer; ?><?php echo $return['name']; ?></td>
							<td rowspan="2"><a href="<?php echo $return['href']; ?>">View</a>	</td>
						</tr>
						<tr>
						<td class="textleft"><?php echo $text_order_id; ?><?php echo $return['order_id']; ?></td>
						<td>&nbsp;</td>
						</tr>
					</table>
					<?php } ?>
					<?php } ?>
					<br />
					<div class="pagination"><?php echo $pagination; ?></div>
				</td>
			</tr>
		</table>
	</div>
</div>
<?php echo $footer; ?> 